//
//  CalculatorViewController.h
//  Finance
//
//  Created by cheng xiang on 13-4-2.
//  Copyright (c) 2013年 cheng xiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CalculatorViewController : UIViewController<UITextFieldDelegate>
{
    UITextField*    txtMoneyRate;   //预期收益率
    UITextField*    txtTime;        //委托期限
    UITextField*    txtBuynumber;   //购买金额
    
    
    UILabel*        lbRealMoney;        //实际收益
    UILabel*        lbTotalRealMoney;   //实际总收益
    
    UILabel*        lbBankMoney;        //银行收益
    UILabel*        lbTotalBankMoney;   //银行总计

    
//    UIButton*       btn365;             //选择基本天数为365
//    UIButton*       btn360;
    
    NSInteger       selectionIndex; //0: 选 365  1:选 360
}

@property(nonatomic,strong) IBOutlet UITextField*    txtMoneyRate;
@property(nonatomic,strong) IBOutlet UITextField*    txtTime; 
@property(nonatomic,strong) IBOutlet UITextField*    txtBuynumber;
@property(nonatomic,strong) IBOutlet UILabel*        lbRealMoney;
@property(nonatomic,strong) IBOutlet UILabel*        lbTotalRealMoney;

@property(nonatomic,strong) IBOutlet UILabel*        lbBankMoney;
@property(nonatomic,strong) IBOutlet UILabel*        lbTotalBankMoney;

//@property(nonatomic,strong) IBOutlet UIButton*       btn365;
//@property(nonatomic,strong) IBOutlet UIButton*       btn360;


-(IBAction)calculate:(id)sender;
-(IBAction)select365:(id)sender;
-(IBAction)select360:(id)sender;

-(void)calculateValue;
@end
